package com.ruoyi.project.bas.basProducttype.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 物料分辨管理对象 bas_product_type
 * 
 * @author qxq
 * @date 2023-05-31
 */
public class BasProductType extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料分类编码 */
    @Excel(name = "物料分类编码")
    private String productTypeNo;

    /** 物料分类名称 */
    @Excel(name = "物料分类名称")
    private String productTypeName;

    /** 父ID */
    @Excel(name = "父ID")
    private String parent;

    public void setProductTypeNo(String productTypeNo) 
    {
        this.productTypeNo = productTypeNo;
    }

    public String getProductTypeNo() 
    {
        return productTypeNo;
    }
    public void setProductTypeName(String productTypeName) 
    {
        this.productTypeName = productTypeName;
    }

    public String getProductTypeName() 
    {
        return productTypeName;
    }
    public void setParent(String parent) 
    {
        this.parent = parent;
    }

    public String getParent() 
    {
        return parent;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productTypeNo", getProductTypeNo())
            .append("productTypeName", getProductTypeName())
            .append("parent", getParent())
            .append("ancestors", getAncestors())
            .toString();
    }
}
